<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html id="html">
    <head>
        <title>GC: schema / jboss-as-config_1_0.xsd - GrepCode Source</title>
        <meta name="verify-v1" content="oDbHfknRLVnvs+1b/O61iSxPEhVr3O08Fd3QqJ1cGh8="/>
        <meta name="verify-v1" content="d2G+nnw2Xr6jBfde7yNvdZirW9Y6K0fa+56zhEmm6YA="/>
        <meta name="msvalidate.01" content="62B5A32F828BC27E3852FB825A5156E4" />
        <meta name="description" content="schema / jboss-as-config_1_0.xsd"/>
        <meta property="fb:app_id" content="143989634057"/>
        <link rel="canonical" href="http://grepcode.com/file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta5/schema/jboss-as-config_1_0.xsd"/>
        <link rel="search" type="application/opensearchdescription+xml" title="grepcode.com" href="/static/app/grepcodeosd.xml"/>
        <link rel="icon" type="image/x-icon" href="/static/app/images/favicon.ico"/>

        <link href="/static/app/stylesheet/site.css" rel="stylesheet" type="text/css"/>
        <link href="/static/app/stylesheet/images-sprite.css" rel="stylesheet" type="text/css"/>
        <link href="/static/app/stylesheet/images-site-sprite.css" rel="stylesheet" type="text/css"/>

        <!-- always need these -->
        <script type="text/javascript" src="/static/app/javascript/always.js"></script>

        
        
            <link rel="stylesheet" type="text/css" href="/static/app/libs/yui/treeview/assets/folders.css"/>
            <link rel="stylesheet" type="text/css" href="/static/app/libs/yui/logger/assets/skins/sam/logger.css"/>
            <link rel="stylesheet" type="text/css" href="/static/app/libs/yui/tabview/assets/skins/sam/tabview.css"/>

            <script type="text/javascript" src="/static/app/javascript/yui2.js"></script>
        

        
        
            <script type="text/javascript" src="/static/app/javascript/grepcode.js"></script>
        

        
        
    
<script id="com-grepcode-web-entity-snapshot-ProjectSnapshotChooser-0">
function showSiblings(tLink) {
    var sDiv = tLink.nextSibling;
    while (sDiv.nodeType != 1) { sDiv = sDiv.nextSibling; }

    if (sDiv.style.visibility == "visible") {
        sDiv.style.visibility = "hidden";
    } else {
        var x = getPageOffsetLeft(tLink) - 7;
        var y = getPageOffsetTop(tLink) + tLink.offsetHeight + 5;
        sDiv.style.left = x + "px";
        sDiv.style.top = y + "px";
        sDiv.style.visibility = "visible";
    }
}
</script>
</head>

    <body>
        <div id="header">
            <div class="head-search">
                <div class="head-outer">
                    <div class="head-middle">
                        <div class="head-inner">
                            <div>
    <div class="search-panel">
        <form action="/search">
            <span id="query-container">
                <input id="search-field" type="text" name="query" value=""/>
            </span>
            <input type="hidden" name="n" value=""></input>
            <input type="submit" value="Search"/>
            <span id="search-field-focus-flag" style="display:none;">false</span>
        </form>
    </div>
    <script>
    YAHOO.util.Event.onDOMReady(function() {
        var flag = document.getElementById("search-field-focus-flag");
        if (flag && flag.innerHTML === 'true') {
            document.getElementById("search-field").focus();
        }
    }, null, true)
    </script>
</div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="logo">
                <div class="head-outer">
                    <div class="head-middle">
                        <div class="head-inner">
                            <a href="/"><img src="/static/app/images/logo-rel.gif" alt="Logo" width="200" height="50"/></a>
                        </div>
                    </div>
                </div>
            </div>
            <div class="head-menu head-menu-width">
                <div class="head-outer">
                    <div class="head-middle">
                        <div class="head-inner">
                            <span>
			                <a href="/?st=true">Stack Trace Search</a> |
                            </span>
                            <span>
                            <a href="/eclipse">Eclipse</a> |
                            <a href="/intellij">IntelliJ</a> |
                            <a href="/contact">Contact</a> |
                            <a href="/faq">FAQ</a>
                            </span>
                            
                            <span>
                            |
                            <a href="http://blog.grepcode.com/" rel="nofollow"><img title="Our Blog" alt="Blog" src="/static/app/images/site/blog.png" width="16" height="16" border="0"/></a>
                            <a href="http://twitter.com/grepcode/" rel="nofollow"><img title="Follow us on Twitter" alt="Twitter" src="/static/app/images/site/twitter.png" width="16" height="16" border="0"/></a>
                            <a href="http://www.facebook.com/pages/GrepCode/159698964349" rel="nofollow"><img title="Follow us on FaceBook" alt="FaceBook" src="/static/app/images/site/facebook.png" width="16" height="16" border="0"/></a>
                            </span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
            <script type="text/javascript">
                    var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
                    document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
            </script>
            <script type="text/javascript">
                var pageTracker = _gat._getTracker("UA-7614624-1");
            </script>
        
        
            <script>
                function isGCEnterpriseEdition() {
                    return false;
                }
            </script>
        
        
    <div class="staging-page">
        
<div>
    <script>
    var projectTree = function() {
        var tree, currentIconMode, fileParts;

        function changeIconMode() {
            var newVal = parseInt(this.value);
            if (newVal != currentIconMode) {
                currentIconMode = newVal;
            }
            buildTree();
        }

        function loadNodeData(node, fnLoadComplete)  {
            var entityidParam = encodeURI(node.data.cb_entityid);
            var pathParam = encodeURI(node.data.cb_path);

            var sUrl = "/service/listsourcefiles?" + getEntityType() + "=" + entityidParam + "&path=" + pathParam;

            var callback = {

                success: function(oResponse) {
                    YAHOO.log("XHR transaction was successful.", "info", "example");
                    var oResults = eval("(" + oResponse.responseText + ")");
                    if (YAHOO.lang.isArray(oResults)) {
                        var level = node.data.cb_level + 1;
                        for(var i = 0; i < oResults.length; ++i) {
                            var oRes = oResults[i];
                            if (oRes.t == "d") {
                                var expand = oResults.length == 1;
                                if (isFileStagingPage() && level < fileParts.length) {
                                    if (fileParts[level] == oRes.n) {
                                        expand = true;
                                    }
                                }
                                var tempNode = new YAHOO.widget.TextNode(oRes.n, node, expand);
                                tempNode.data.cb_entityid = node.data.cb_entityid;
                                tempNode.data.cb_path = node.data.cb_path + oRes.n + "/";
                                tempNode.data.cb_level = level;
                            } else if (oRes.t == "f") {
                                if (isFileStagingPage() && (level < fileParts.length) &&
                                    (fileParts[level] == oRes.n) && (fileParts.join("/") == oRes.p)) {
                                    var tempNode = new YAHOO.widget.TextNode(oRes.n, node, false);
                                    tempNode.isLeaf = true;
                                    tempNode.data.cb_level = level;
                                    tempNode.contentStyle = 'current-filename';
                                    // VRB - TODO - Capture div.x and div.y -- scroll div so it is in the center
                                } else {
                                    var tempNode = new YAHOO.widget.TextNode(oRes.n, node, false);
                                    tempNode.href = oRes.l+"?av=f";
                                    tempNode.isLeaf = true;
                                    tempNode.data.cb_level = level;
                                }
                            }
                        }
                    }
                    oResponse.argument.fnLoadComplete();
                },
                failure: function(oResponse) {
                    YAHOO.log("Failed to process XHR transaction.", "info", "example");
                    oResponse.argument.fnLoadComplete();
                },

                argument: {
                    "node": node,
                    "fnLoadComplete": fnLoadComplete
                },

                timeout: 7000
            };

            YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
        }

        function buildTree() {
            tree = new YAHOO.widget.TreeView("treeDiv");

            tree.setDynamicLoad(loadNodeData, currentIconMode);

            var root = tree.getRoot();

            var entityid = document.getElementById('treerootid_hidden').innerHTML;
            var tempNode = new YAHOO.widget.TextNode(createShortEntityIdLabel(entityid), root, true);
            tempNode.data.cb_entityid=entityid;
            tempNode.data.cb_path="/";
            tempNode.data.cb_level = -1;

            if (isFileStagingPage()) {
                var filePathStart = document.getElementById("entityid_hidden").innerHTML.lastIndexOf('@');
                var filePath = document.getElementById("entityid_hidden").innerHTML.substring(filePathStart + 1);
                fileParts = filePath.split('$');
            }

            tree.draw();
        }


        return {
            init: function() {
                YAHOO.util.Event.on(["mode0", "mode1"], "click", changeIconMode);
                var el = document.getElementById("mode1");
                if (el && el.checked) {
                    currentIconMode = parseInt(el.value);
                } else {
                    currentIconMode = 0;
                }

                buildTree();
            }
        }
    } ();            
    </script>
    <div id="treerootid_hidden" style="display:none">repo1.maven.org$maven2@org.wildfly.core$wildfly-server@1.0.0.Beta5</div>
    <div id="entityid_hidden" style="display:none">repo1.maven.org$maven2@org.wildfly.core$wildfly-server@1.0.0.Beta5@schema$jboss-as-config_1_0.xsd</div>
    <div id="entitytype_hidden" style="display:none">file</div>

    
    
<div class="file-staging-page">
    <div class="entity-header">
        <div class="entity-nav">
            <ul>
                <li><a href="http://repo1.maven.org/maven2/" rel="nofollow" class="external-link">Maven-Central</a></li>
                <li><span class="entity-nav-delim">/</span></li>
                <li><a href="../project/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/"><span title="org.wildfly.core / wildfly-server">org.wildfly.core / wildfly-server</span></a></li>
                <li><span class="entity-nav-delim">/</span></li>
                <li><span>
    <span>
        <a class="nav" href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta4/schema/jboss-as-config_1_0.xsd/"><span><img class='img_base img_jdt_elcl16_backward_nav' src='/static/app/images/1x1.gif' border='0' title='1.0.0.Beta4' width='16' height='16'></img></span></a>
    </span>
    <a title="Version" href="../snapshot/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta5/"><span id="current-snapshot">1.0.0.Beta5</span></a>
    
        <a href="#" class="snapshots-more"
           onclick="this.blur();showSiblings(this);return false;"><img class='img_base img_jdt_elcl16_next_nav' src='/static/app/images/1x1.gif' border='0' title='1.0.0.Beta1&nbsp;-&nbsp;1.0.1.Final' width='16' height='16'></img></a>
    
    <div class="snapshots-panel" style="visibility: hidden; z-index:2">
        <div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.1.Final/schema/jboss-as-config_1_0.xsd/"><span>1.0.1.Final</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Final/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.Final</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.CR7/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.CR7</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.CR6/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.CR6</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.CR5/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.CR5</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.CR4/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.CR4</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.CR3/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.CR3</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.CR2/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.CR2</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.CR1/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.CR1</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta6/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.Beta6</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta5/schema/jboss-as-config_1_0.xsd/"><span class="this-snapshot">1.0.0.Beta5</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta4/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.Beta4</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta3/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.Beta3</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta2/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.Beta2</span></a>
        </div><div>
            <a href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta1/schema/jboss-as-config_1_0.xsd/"><span>1.0.0.Beta1</span></a>
        </div>
    </div>
    <span>
        <a class="nav" href="../file/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta6/schema/jboss-as-config_1_0.xsd/"><span><img class='img_base img_jdt_elcl16_forward_nav' src='/static/app/images/1x1.gif' border='0' title='1.0.0.Beta6' width='16' height='16'></img></span></a>
    </span>
</span></li>
                <li><span class="entity-nav-delim">/</span></li>
                <li><span class="entity-name" title="schema / jboss-as-config_1_0.xsd">schema / jboss-as-config_1_0.xsd</span></li>
            </ul>
            <div class="entity-header-links">
                
            <!-- Google +1 -->
            <div class="g-plusone" data-size="small" data-annotation="none"></div>
        
                
                
                
                
                <span><img class='img_base img_jdt_obj16_source_editor' src='/static/app/images/1x1.gif' border='0' title='View as plain text' width='16' height='16'></img></span>
                <a href="../file_/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta5/schema/jboss-as-config_1_0.xsd/?v=source" rel="nofollow" title="View as plain text">Raw</a>
                <span><img class='img_base img_jdt_elcl16_save' src='/static/app/images/1x1.gif' border='0' title='Download file' width='16' height='16'></img></span>
                <a href="../file_/repo1.maven.org/maven2/org.wildfly.core/wildfly-server/1.0.0.Beta5/schema/jboss-as-config_1_0.xsd/?v=source&amp;disposition=attachment" rel="nofollow" title="Download file">Download</a>
                
                
                
                
                
                
            </div>
        </div>
    </div>

    <div id="allviews_hidden" style="display:none"></div>
    <div id="activeview_hidden" style="display:none">f</div>
    <div id="bugs" style="display:none">[]</div>

    <div id="page-mask"></div>
    <div id="snippet-dropdown" class="snippet-dropdown">
        <div id="snippet-close" onclick="hideSnippetDialog();"><img class='img_base img_jdt_elcl16_delete' src='/static/app/images/1x1.gif' border='0' title='Close window' width='16' height='16'></img></div>
        <form id="snippet-form" action="#">
            <div class="snippet-line-input">
                Start line: <input name="snippet_start" type="text" maxlength="8" size="5" value="1" />&nbsp;
                <div class="snippet-spinner-button" onclick="decFromLine();"><img class='img_base img_jdt_obj16_remove_correction' src='/static/app/images/1x1.gif' border='0' title='Previous line' width='16' height='16'></img></div>
                <div class="snippet-spinner-button" onclick="incFromLine();"><img class='img_base img_jdt_elcl16_add' src='/static/app/images/1x1.gif' border='0' title='Next line' width='16' height='16'></img></div>
            </div>
            <div class="snippet-line-input">
                End line: <input name="snippet_end" type="text" maxlength="8" size="5" value="1" />&nbsp;
                <div class="snippet-spinner-button" onclick="decToLine();"><img class='img_base img_jdt_obj16_remove_correction' src='/static/app/images/1x1.gif' border='0' title='Previous line' width='16' height='16'></img></div>
                <div class="snippet-spinner-button" onclick="incToLine();"><img class='img_base img_jdt_elcl16_add' src='/static/app/images/1x1.gif' border='0' title='Next line' width='16' height='16'></img></div>
            </div>
            <div class="snippet-get-button">
                <input type="button" name="snippet_get" value="Create HTML" onclick="fetchSnippet();" />
            </div>
            <br/>
            <p>Snippet Preview</p>
            <div id="snippet-preview"></div>
            <p>Snippet HTML Code</p>
            <textarea name="snippet_html" rows="5" cols="60" readonly="true"></textarea>
        </form>
    </div>
    
    <div id="so-question-panel" class="so-question-panel">
        <div class="so-question-header">
            Stack Overflow Questions
            
        </div>
        
    </div>
    
    <div class="entity-container">
        <div class="file-entity-panel">
            <div id="file-nav-panel" class="file-nav-panel">
                <div class="file-nav-tabs-container">
                    <div id="file-nav-tabs" class="file-nav-tabs yui-skin-sam"></div>
                </div>
            </div>
            <div id="source-view" class="source-view">
                
                
                    <script type="text/javascript">
                    if (isBrowserMSIE()) {
                        document.write("<div style=\"padding: 20px;\">" + get468x60Ad() + "</div>");
                    }
                    </script>
                
                <div><div class='code-panel'><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;

&lt;!--
  ~ JBoss, Home of Professional Open Source.
  ~ Copyright 2010, Red Hat, Inc., and individual contributors
  ~ as indicated by the @author tags. See the copyright.txt file in the
  ~ distribution for a full listing of individual contributors.
  ~
  ~ This is free software; you can redistribute it and/or modify it
  ~ under the terms of the GNU Lesser General Public License as
  ~ published by the Free Software Foundation; either version 2.1 of
  ~ the License, or (at your option) any later version.
  ~
  ~ This software is distributed in the hope that it will be useful,
  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  ~ Lesser General Public License for more details.
  ~
  ~ You should have received a copy of the GNU Lesser General Public
  ~ License along with this software; if not, write to the Free
  ~ Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  ~ 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  --&gt;

&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;
           xmlns=&quot;urn:jboss:domain:1.0&quot;
           targetNamespace=&quot;urn:jboss:domain:1.0&quot;
           elementFormDefault=&quot;qualified&quot;
           attributeFormDefault=&quot;unqualified&quot;
        &gt;


    &lt;xs:element name=&quot;domain&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Root element for the master document specifying the core configuration
                for the servers in a domain. There should be one such master
                document per domain, available to the host controller that
                is configured to act as the domain controller.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexType&gt;
            &lt;xs:sequence&gt;
                &lt;xs:element name=&quot;extensions&quot; type=&quot;extensionsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;system-properties&quot; type=&quot;properties-with-boottime&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;paths&quot; type=&quot;named-pathsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; /&gt;
                &lt;xs:element name=&quot;profiles&quot; type=&quot;profilesType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;interfaces&quot; type=&quot;named-interfacesType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;socket-binding-groups&quot; type=&quot;socket-binding-groupsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;deployments&quot; type=&quot;domain-deploymentsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;server-groups&quot; type=&quot;server-groupsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
            &lt;/xs:sequence&gt;
        &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;

    &lt;xs:element name=&quot;host&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Root element for a document configuring a host controller and
                the group of servers under the control of that host controller.
                The standard usage would be for a domain to have one such host controller
                on each physical (or virtual) host machine. Emphasis in this
                document is on enumerating the servers, configuring items that
                are specific to the host environment (e.g. IP addresses), and
                on any server-specific configuration settings.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexType&gt;
            &lt;xs:sequence&gt;
                &lt;xs:element name=&quot;system-properties&quot; type=&quot;properties-with-boottime&quot; minOccurs=&quot;0&quot;/&gt;
                &lt;xs:element name=&quot;paths&quot; type=&quot;specified-pathsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; /&gt;
                &lt;xs:element name=&quot;management&quot; type=&quot;managementType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;domain-controller&quot; type=&quot;domain-controllerType&quot;/&gt;
                &lt;xs:element name=&quot;interfaces&quot; type=&quot;specified-interfacesType&quot; minOccurs=&quot;0&quot;/&gt;
                &lt;xs:element name=&quot;jvms&quot; type=&quot;jvmsType&quot; minOccurs=&quot;0&quot;/&gt;
                &lt;xs:element name=&quot;servers&quot; type=&quot;serversType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;/xs:sequence&gt;
            &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
                &lt;xs:annotation&gt;
                    &lt;xs:documentation&gt;
                        The name to use for this host's host controller. Must be
                        unique across the domain. If not set, defaults to the
                        runtime value of InetAddress.getLocalHost().getHostName().
                    &lt;/xs:documentation&gt;
                &lt;/xs:annotation&gt;
            &lt;/xs:attribute&gt;
        &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;

    &lt;xs:element name=&quot;server&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Root element for a document specifying the configuration
                of a single &quot;standalone&quot; server that does not operate
                as part of a domain.

                Note that this element is distinct from the 'serverType'
                specified in this schema. The latter type forms part of the
                configuration of a server that operates as part of a domain.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexType&gt;
            &lt;xs:sequence&gt;
                &lt;xs:element name=&quot;extensions&quot; type=&quot;extensionsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;system-properties&quot; type=&quot;properties&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;paths&quot; type=&quot;specified-pathsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;management&quot; type=&quot;managementType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;profile&quot; type=&quot;standalone-profileType&quot; minOccurs=&quot;0&quot;/&gt;
                &lt;xs:element name=&quot;interfaces&quot; type=&quot;specified-interfacesType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;socket-binding-group&quot; type=&quot;standalone-socket-binding-groupType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
                &lt;xs:element name=&quot;deployments&quot; type=&quot;server-deploymentsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;/&gt;
            &lt;/xs:sequence&gt;
            &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
                &lt;xs:annotation&gt;
                    &lt;xs:documentation&gt;
                        The name to use for this server. If not set, defaults to
                        the runtime value of InetAddress.getLocalHost().getHostName().
                    &lt;/xs:documentation&gt;
                &lt;/xs:annotation&gt;
            &lt;/xs:attribute&gt;
        &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;

    &lt;xs:complexType name=&quot;domain-managementType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Domain-wide default configuration settings for the management of standalone servers and a Host Controller.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;security-realms&quot; minOccurs=&quot;0&quot;&gt;
                &lt;xs:complexType&gt;
                    &lt;xs:sequence&gt;
                        &lt;xs:element name=&quot;security-realm&quot; type=&quot;security-realmType&quot; minOccurs=&quot;1&quot;
                                    maxOccurs=&quot;unbounded&quot;/&gt;
                    &lt;/xs:sequence&gt;
                &lt;/xs:complexType&gt;
            &lt;/xs:element&gt;
            &lt;xs:element name=&quot;outbound-connections&quot; minOccurs=&quot;0&quot;&gt;
                &lt;xs:complexType&gt;
                    &lt;xs:sequence&gt;
                      &lt;xs:element name=&quot;ldap&quot; type=&quot;ldapType&quot; minOccurs=&quot;1&quot; /&gt; &lt;!-- TODO minOccurs only while ldap is only supported connection. --&gt;
                    &lt;/xs:sequence&gt;
                &lt;/xs:complexType&gt;
            &lt;/xs:element&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;managementType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                The centralized configuration for the management of standalone servers and a Host Controller.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;domain-managementType&quot;&gt;
                &lt;xs:sequence&gt;
                    &lt;xs:element name=&quot;management-interfaces&quot; type=&quot;management-interfacesType&quot; minOccurs=&quot;0&quot;/&gt;
                &lt;/xs:sequence&gt;
            &lt;/xs:extension&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;ldapType&quot;&gt; &lt;!-- TODO - May extend from a common connection type for name --&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                The LDAP connection definition.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of this connection.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;url&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The URL to connect to ldap.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;!-- TODO - Later will be optional if we support GSSAPI to connect to LDAP --&gt;
        &lt;xs:attribute name=&quot;search-dn&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The distinguished name to use when connecting to LDAP to perform searches.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;search-credential&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The credential to use when connecting to perform a search.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;!-- TODO - May drop this and just allow free name/value properties for extension. --&gt;
        &lt;xs:attribute name=&quot;initial-context-factory&quot; type=&quot;xs:string&quot; default=&quot;com.sun.jndi.ldap.LdapCtxFactory&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The initial context factory to establish the LdapContext.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;security-realmType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Configuration of a security realm for securing access to the management interfaces.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;server-identities&quot; type=&quot;server-identitiesType&quot; minOccurs=&quot;0&quot; /&gt;
            &lt;xs:element name=&quot;authentication&quot; type=&quot;authenticationType&quot; minOccurs=&quot;0&quot; /&gt;
        &lt;/xs:sequence&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of this security-realm, each security-realm must be assigned a unique name.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;server-identitiesType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Configuration of the identities that represent the server.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
          &lt;xs:element name=&quot;ssl&quot; type=&quot;sslType&quot; minOccurs=&quot;0&quot; /&gt;
          &lt;xs:element name=&quot;secret&quot; type=&quot;secretType&quot; minOccurs=&quot;0&quot; /&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;secretType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Configuration of the SSL identity of this server.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;value&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The secret / password - Base64 Encoded
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;sslType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Configuration of the SSL identity of this server.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;keystore&quot; type=&quot;keystoreType&quot; /&gt;
        &lt;/xs:sequence&gt;
        &lt;xs:attribute name=&quot;protocol&quot; type=&quot;xs:string&quot; default=&quot;TLS&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The protocol to use when creating the SSLContext.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;keystoreType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                The keystore configuration for the server.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;relative-to&quot; use=&quot;optional&quot; type=&quot;xs:string&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of another previously named path, or of one of the
                    standard paths provided by the system. If 'relative-to' is
                    provided, the value of the 'path' attribute is treated as
                    relative to the path specified by this attribute.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The path of the keystore.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;password&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The password to open the keystore.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;authenticationType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Configuration of the server side authentication mechanisms.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:choice&gt;
            &lt;xs:element name=&quot;ldap&quot; type=&quot;ldapAuthenticationType&quot; minOccurs=&quot;0&quot; /&gt;
            &lt;xs:element name=&quot;properties&quot; type=&quot;propertiesAuthenticationType&quot; minOccurs=&quot;0&quot; /&gt;
            &lt;xs:element name=&quot;users&quot; type=&quot;usersAuthenticationType&quot; minOccurs=&quot;0&quot; /&gt;
        &lt;/xs:choice&gt;
        &lt;xs:attribute name=&quot;useDomainController&quot; type=&quot;xs:boolean&quot; default=&quot;false&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Should the request delegate to the domain controller or handle the authentication locally.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;ldapAuthenticationType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Definition to use LDAP as the user repository.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;connection&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of the connection to use to connect to LDAP.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;base-dn&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The base distinguished name to commence the search for the user.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;username-attribute&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of the attribute to search for the user.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;recursive&quot; type=&quot;xs:boolean&quot; default=&quot;false&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Should the search be recursive.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;user-dn&quot; type=&quot;xs:string&quot; default=&quot;dn&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of the attribute which is the users distinguished name.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;


    &lt;xs:complexType name=&quot;usersAuthenticationType&quot;&gt;
           &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A set of users
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;user&quot; type=&quot;userType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;userType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A single user.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:choice&gt;
            &lt;xs:element name=&quot;password&quot; type=&quot;xs:string&quot; /&gt;
        &lt;/xs:choice&gt;
        &lt;xs:attribute name=&quot;username&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The users username.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;propertiesAuthenticationType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Declaration of users stored within properties files.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;relative-to&quot; use=&quot;optional&quot; type=&quot;xs:string&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of another previously named path, or of one of the
                    standard paths provided by the system. If 'relative-to' is
                    provided, the value of the 'path' attribute is treated as
                    relative to the path specified by this attribute.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;path&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The path of the properties file containing the users.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;management-interfaceType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Configuration of a host's or standalone server's exposed management interface.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;interface&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Network interface on which the host's socket for
                    management communication should be opened.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;port&quot; type=&quot;xs:int&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Port on which the host's socket for
                    management communication should be opened.

                    If not specified the port will not be opened.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;secure-port&quot; type=&quot;xs:int&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Secure port on which the host's socket for
                    management communication should be opened.

                    If not specified the port will not be opened.

                    If specified the security-realm will be required to obtain
                    the SSL configuration.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;security-realm&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The security realm to use for this management interface, the capabilities
                    of the security realm will be queried to identify the authentication mechanism(s) to
                    offer.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;management-interfacesType&quot;&gt;
        &lt;xs:all minOccurs=&quot;0&quot;&gt;
            &lt;xs:element name=&quot;native-interface&quot; type=&quot;management-interfaceType&quot;/&gt;
            &lt;xs:element name=&quot;http-interface&quot; type=&quot;management-interfaceType&quot;/&gt;
        &lt;/xs:all&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;domain-controllerType&quot;&gt;
        &lt;xs:choice&gt;
            &lt;xs:element name=&quot;local&quot; type=&quot;domain-controller-localType&quot;/&gt;
            &lt;xs:element name=&quot;remote&quot; type=&quot;domain-controller-remoteType&quot;/&gt;
        &lt;/xs:choice&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;domain-controller-localType&quot; /&gt;

    &lt;xs:complexType name=&quot;domain-controller-remoteType&quot;&gt;
         &lt;xs:attribute name=&quot;host&quot; type=&quot;xs:string&quot; use=&quot;required&quot; /&gt;
         &lt;xs:attribute name=&quot;port&quot; type=&quot;xs:integer&quot; use=&quot;required&quot; /&gt;
         &lt;xs:attribute name=&quot;security-realm&quot; type=&quot;xs:string&quot; use=&quot;optional&quot; /&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;serversType&quot;&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;server&quot; type=&quot;serverType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;serverType&quot;&gt;
        &lt;xs:all&gt;
            &lt;xs:element name=&quot;paths&quot; type=&quot;specified-pathsType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot; /&gt;

            &lt;xs:element name=&quot;interface-specs&quot; type=&quot;specified-interfacesType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;xs:element name=&quot;socket-binding-group&quot; type=&quot;socket-binding-group-refType&quot; minOccurs=&quot;0&quot;/&gt;

            &lt;!--&lt;xs:element name=&quot;loggers&quot; type=&quot;loggersType&quot; minOccurs=&quot;0&quot;/&gt;--&gt;
            &lt;xs:element name=&quot;system-properties&quot; type=&quot;properties-with-boottime&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;xs:element name=&quot;jvm&quot; minOccurs=&quot;0&quot; type=&quot;serverJvmType&quot;/&gt;
        &lt;/xs:all&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
        &lt;xs:attribute name=&quot;group&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
        &lt;xs:attribute name=&quot;auto-start&quot; type=&quot;xs:boolean&quot; default=&quot;true&quot;/&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;extensionsType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of extension modules.&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;extension&quot; type=&quot;extensionType&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;extensionType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A module that extends the standard capabilities of a domain
                or a standalone server.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;module&quot; use=&quot;required&quot; type=&quot;xs:string&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;The name of the module&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;server-groupsType&quot;&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;server-group&quot; type=&quot;server-groupType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;server-groupType&quot;&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;jvm&quot; type=&quot;namedJvmType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;xs:element name=&quot;socket-binding-group&quot; type=&quot;socket-binding-group-refType&quot; minOccurs=&quot;1&quot;/&gt;

            &lt;xs:element name=&quot;deployments&quot; type=&quot;server-groupDeploymentsType&quot; minOccurs=&quot;0&quot;/&gt;

            &lt;xs:element name=&quot;system-properties&quot; minOccurs=&quot;0&quot; type=&quot;properties-with-boottime&quot;/&gt;
        &lt;/xs:sequence&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of the server group
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;profile&quot; type=&quot;xs:string&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of the profile this server is running.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;server-groupDeploymentsType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of deployments that have been mapped to a server-group.&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;deployment&quot; type=&quot;base-deploymentType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;base-deploymentType&quot;&gt;
        &lt;xs:attribute name=&quot;name&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;Unique identifier of the deployment. Must be unique across all deployments.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;runtime-name&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;Name by which the deployment will be known within a running server.of the deployment.
                    Does not need to be unique across all deployments in the domain, although it must be unique within
                    an individual server. For example, two different deployments running on different servers in
                    the domain could both have a 'runtime-name' of 'example.war', with one having a 'name'
                    of 'example.war_v1' and another with an 'name' of 'example.war_v2'.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;&lt;xs:complexType name=&quot;server-deploymentsType&quot;&gt;
    &lt;xs:annotation&gt;
        &lt;xs:documentation&gt;Contains a list of deployments that have been mapped to a server.&lt;/xs:documentation&gt;
    &lt;/xs:annotation&gt;
    &lt;xs:sequence&gt;
        &lt;xs:element name=&quot;deployment&quot; type=&quot;server-deploymentType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
    &lt;/xs:sequence&gt;
&lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;server-deploymentType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;A deployment that has been mapped to a server.&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;base-deploymentType&quot;&gt;
                &lt;xs:sequence&gt;
                    &lt;!-- TODO: maxOccurs should be unbounded once overlays are in place --&gt;
                    &lt;xs:choice maxOccurs=&quot;1&quot;&gt;
                        &lt;xs:element name=&quot;content&quot; type=&quot;contentType&quot;/&gt;
                        &lt;xs:element name=&quot;fs-archive&quot; type=&quot;fs-archiveType&quot;/&gt;
                        &lt;xs:element name=&quot;fs-exploded&quot; type=&quot;fs-explodedType&quot;/&gt;
                    &lt;/xs:choice&gt;
                &lt;/xs:sequence&gt;
                &lt;!--  TODO clarify what a value of 'false' means --&gt;
                &lt;xs:attribute name=&quot;enabled&quot; use=&quot;optional&quot; type=&quot;xs:boolean&quot; default=&quot;true&quot;&gt;
                    &lt;xs:annotation&gt;
                        &lt;xs:documentation&gt;Whether the deployment deploy automatically when the server starts up.
                        &lt;/xs:documentation&gt;
                    &lt;/xs:annotation&gt;
                &lt;/xs:attribute&gt;
            &lt;/xs:extension&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;contentType&quot;&gt;
        &lt;xs:attribute name=&quot;sha1&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;The checksum of the content&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;fs-archiveType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Archived content found on the filesystem&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;fs-baseType&quot;/&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;fs-baseType&quot;&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;pathType&quot;/&gt;
        &lt;/xs:complexContent&gt;
        &lt;!-- TODO: make path required
        &lt;xs:complexContent&gt;
            &lt;xs:restriction base=&quot;pathType&quot;&gt;
                &lt;xs:attribute name=&quot;path&quot; use=&quot;required&quot;/&gt;
            &lt;/xs:restriction&gt;
        &lt;/xs:complexContent&gt;
        --&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;fs-explodedType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Exploded content found on the filesystem&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;fs-baseType&quot;/&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;domain-deploymentsType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of domain-level deployments&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;deployment&quot; type=&quot;domain-deploymentType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;domain-deploymentType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Deployment represents anything that can be deployed (e.g. an application such as EJB-JAR,
                WAR, EAR,
                any kind of standard archive such as RAR or JBoss-specific deployment),
                which can be enabled or disabled on a domain level.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;base-deploymentType&quot;&gt;
                &lt;xs:sequence&gt;
                    &lt;!-- TODO: maxOccurs should be unbounded once overlays are in place --&gt;
                    &lt;xs:choice maxOccurs=&quot;1&quot;&gt;
                        &lt;xs:element name=&quot;content&quot; type=&quot;contentType&quot;/&gt;
                        &lt;xs:element name=&quot;fs-archive&quot; type=&quot;fs-archiveType&quot;/&gt;
                        &lt;xs:element name=&quot;fs-exploded&quot; type=&quot;fs-explodedType&quot;/&gt;
                    &lt;/xs:choice&gt;
                &lt;/xs:sequence&gt;
            &lt;/xs:extension&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;!-- TODO this is not used anywhere yet --&gt;
    &lt;xs:complexType name=&quot;clustersType&quot;&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;server-groupType&quot;&gt;
                &lt;xs:sequence&gt;
                    &lt;xs:element name=&quot;partition-name&quot; type=&quot;xs:string&quot;/&gt;
                    &lt;xs:element name=&quot;state-transfer-timeout&quot; type=&quot;xs:integer&quot;/&gt;
                    &lt;xs:element name=&quot;method-call-timeout&quot; type=&quot;xs:integer&quot;/&gt;
                &lt;/xs:sequence&gt;
                &lt;xs:attribute name=&quot;category&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
            &lt;/xs:extension&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;!-- domain-configuration related definitions --&gt;
    &lt;xs:complexType name=&quot;domain-configurationType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;The domain controller/server bootstrap configuration&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element ref=&quot;bootstrapURI&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
    &lt;xs:element name=&quot;bootstrapURI&quot; type=&quot;xs:string&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;The URI for bootstrapping a domain server&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:element&gt;

    &lt;xs:complexType name=&quot;profilesType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of profiles available for use in the domain&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;profile&quot; type=&quot;domain-profileType&quot; minOccurs=&quot;1&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;domain-profileType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of subsystems&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;include&quot; type=&quot;profile-includeType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
            &lt;xs:any namespace=&quot;##other&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;&gt;
                &lt;xs:annotation&gt;
                    &lt;xs:documentation&gt;A profile declaration may include configuration
                        elements from other namespaces for the subsystems that make up the profile.
                    &lt;/xs:documentation&gt;
                &lt;/xs:annotation&gt;
            &lt;/xs:any&gt;
        &lt;/xs:sequence&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;Name of the profile&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;profile-includeType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Specifies that a contents of a named profile are to be included in
                the profile whose definition includes this type.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;profile&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;Name of the profile to include&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;standalone-profileType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of subsystems&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:choice minOccurs=&quot;1&quot; maxOccurs=&quot;unbounded&quot;&gt;
                &lt;xs:any namespace=&quot;##other&quot;&gt;
                    &lt;xs:annotation&gt;
                        &lt;xs:documentation&gt;A profile declaration may include configuration
                            elements from other namespaces for the subsystems that make up the profile.
                        &lt;/xs:documentation&gt;
                    &lt;/xs:annotation&gt;
                &lt;/xs:any&gt;
            &lt;/xs:choice&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;!-- general socket definition --&gt;
    &lt;xs:complexType name=&quot;socket-binding-groupsType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of socket binding groups&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;socket-binding-group&quot; type=&quot;socket-binding-groupType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;socket-binding-groupType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of socket configurations&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;include&quot; type=&quot;socket-binding-group-includeType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
            &lt;xs:element name=&quot;socket-binding&quot; type=&quot;socket-bindingType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
        &lt;xs:attribute name=&quot;default-interface&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Name of an interface that should be used as the interface for
                    any sockets that do not explicitly declare one.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;socket-binding-group-includeType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Specifies that a contents of a named socket-binding-group are to be included in
                the socket-binding-group whose definition includes this type.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;socket-binding-group&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;Name of the socket-binding-group to include&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;standalone-socket-binding-groupType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Contains a list of socket configurations&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;socket-binding&quot; type=&quot;socket-bindingType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
        &lt;xs:attribute name=&quot;default-interface&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Name of an interface that should be used as the interface for
                    any sockets that do not explicitly declare one.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
	    &lt;xs:attribute name=&quot;port-offset&quot; type=&quot;xs:int&quot; use=&quot;optional&quot; default=&quot;0&quot;&gt;
	        &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
	                    Increment to apply to the base port values defined in the
	                    socket group to derive the values to use on this
	                    server.
	            &lt;/xs:documentation&gt;
	        &lt;/xs:annotation&gt;
	    &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;socket-bindingType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Configuration information for a socket.&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
        &lt;xs:attribute name=&quot;interface&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Name of the interface to which the socket should be bound, or, for multicast
                    sockets, the interface on which it should listen. This should
                    be one of the declared interfaces.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;port&quot; type=&quot;xs:unsignedShort&quot; use=&quot;optional&quot; default=&quot;0&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Number of the port to which the socket should be bound.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;fixed-port&quot; type=&quot;xs:boolean&quot; use=&quot;optional&quot; default=&quot;false&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Whether the port value should remain fixed even if numerically offsets
                    are applied to the other sockets in the socket group..
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;multicast-address&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Multicast address on which the socket should receive multicast
                    traffic. If unspecified, the socket will not be configured
                    to receive multicast.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;multicast-port&quot; type=&quot;xs:positiveInteger&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Port on which the socket should receive multicast
                    traffic. Must be configured if 'multicast-address' is configured.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;socket-binding-group-refType&quot;&gt;
        &lt;xs:attribute name=&quot;ref&quot; type=&quot;xs:string&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The socket group to use for the server group or server.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;port-offset&quot; type=&quot;xs:int&quot; default=&quot;0&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Increment to apply to the base port values defined in the
                    referenced socket group to derive the values to use on this
                    server.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;


    &lt;xs:complexType name=&quot;named-interfacesType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A list of named network interfaces. The interfaces may or may
                not be fully specified (i.e. include criteria on how to determine
                their IP address.)
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;interface&quot; type=&quot;named-interfaceType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;!-- TODO make this and specified-interfaceType the same except for interface-criteriaGroup minOccurs --&gt;
    &lt;xs:complexType name=&quot;named-interfaceType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A named network interface, but without any criteria
                for determining the IP address to associate with that interface.
                Acts as a placeholder in the model (e.g. at the domain level)
                until a fully specified interface definition is applied at a
                lower level (e.g. at the server level, where available addresses
                are known.)
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:group ref=&quot;interface-criteriaGroup&quot; minOccurs=&quot;0&quot;/&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;specified-interfacesType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A list of fully specified named network interfaces.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;interface&quot; type=&quot;specified-interfaceType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;specified-interfaceType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A named network interface, along with required criteria
                for determining the IP address to associate with that interface.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:group ref=&quot;interface-criteriaGroup&quot; minOccurs=&quot;1&quot;/&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:group name=&quot;interface-criteriaGroup&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A set of criteria that can be used at runtime to determine
                what IP address to use for an interface.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:choice&gt;
            &lt;xs:element name=&quot;any-address&quot; type=&quot;any-addressType&quot;/&gt;
            &lt;xs:element name=&quot;any-ipv6-address&quot; type=&quot;any-ipv6-addressType&quot;/&gt;
            &lt;xs:element name=&quot;any-ipv4-address&quot; type=&quot;any-ipv4-addressType&quot;/&gt;
            &lt;xs:choice maxOccurs=&quot;unbounded&quot;&gt;
                &lt;xs:element name=&quot;inet-address&quot; type=&quot;inet-addressType&quot;/&gt;
                &lt;xs:element name=&quot;loopback&quot; type=&quot;loopbackType&quot;/&gt;
                &lt;xs:element name=&quot;loopback-address&quot; type=&quot;loopback-addressType&quot;/&gt;
                &lt;xs:element name=&quot;multicast&quot; type=&quot;multicastType&quot;/&gt;
                &lt;xs:element name=&quot;point-to-point&quot; type=&quot;point-to-pointType&quot;/&gt;
                &lt;xs:element name=&quot;virtual&quot; type=&quot;interface-virtualType&quot;/&gt;
                &lt;xs:element name=&quot;up&quot; type=&quot;interface-upType&quot;/&gt;
                &lt;xs:element name=&quot;public-address&quot; type=&quot;public-addressType&quot;/&gt;
                &lt;xs:element name=&quot;link-local-address&quot; type=&quot;link-local-addressType&quot;/&gt;
                &lt;xs:element name=&quot;site-local-address&quot; type=&quot;site-local-addressType&quot;/&gt;
                &lt;xs:element name=&quot;nic&quot; type=&quot;nicType&quot;/&gt;
                &lt;xs:element name=&quot;nic-match&quot; type=&quot;nic-matchType&quot;/&gt;
                &lt;xs:element name=&quot;subnet-match&quot; type=&quot;subnet-matchType&quot;/&gt;
                &lt;xs:element name=&quot;not&quot; type=&quot;address-exclusionType&quot;/&gt;
                &lt;xs:element name=&quot;any&quot; type=&quot;address-exclusionType&quot;/&gt;
            &lt;/xs:choice&gt;
        &lt;/xs:choice&gt;
    &lt;/xs:group&gt;

    &lt;xs:complexType name=&quot;inet-addressType&quot;&gt;
        &lt;xs:attribute name=&quot;value&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Either an IP address in IPv6 or IPv4 dotted decimal notation,
                    or a hostname that can be resolved to an IP address.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;nicType&quot;&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    The name of a network interface (e.g. eth0, eth1, lo).
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;nic-matchType&quot;&gt;
        &lt;xs:attribute name=&quot;pattern&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    A regular expression against which the names of the network
                    interfaces available on the machine can be matched to find
                    an acceptable interface.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;subnet-matchType&quot;&gt;
        &lt;xs:attribute name=&quot;value&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    A network IP address and the number of bits in the
                    address' network prefix, written in &quot;slash notation&quot;;
                    e.g. &quot;192.168.0.0/16&quot;.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;address-exclusionType&quot;&gt;
        &lt;xs:choice&gt;
            &lt;xs:element name=&quot;inet-address&quot; type=&quot;inet-addressType&quot;/&gt;
            &lt;xs:element name=&quot;loopback&quot; type=&quot;loopbackType&quot;/&gt;
            &lt;xs:element name=&quot;loopback-address&quot; type=&quot;loopback-addressType&quot;/&gt;
            &lt;xs:element name=&quot;multicast&quot; type=&quot;multicastType&quot;/&gt;
            &lt;xs:element name=&quot;point-to-point&quot; type=&quot;point-to-pointType&quot;/&gt;
            &lt;xs:element name=&quot;virtual&quot; type=&quot;interface-virtualType&quot;/&gt;
            &lt;xs:element name=&quot;up&quot; type=&quot;interface-upType&quot;/&gt;
            &lt;xs:element name=&quot;public-address&quot; type=&quot;public-addressType&quot;/&gt;
            &lt;xs:element name=&quot;link-local-address&quot; type=&quot;link-local-addressType&quot;/&gt;
            &lt;xs:element name=&quot;site-local-address&quot; type=&quot;site-local-addressType&quot;/&gt;
            &lt;xs:element name=&quot;nic&quot; type=&quot;nicType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
            &lt;xs:element name=&quot;nic-match&quot; type=&quot;nic-matchType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
            &lt;xs:element name=&quot;subnet-match&quot; type=&quot;subnet-matchType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:choice&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;loopbackType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that part of the selection criteria
                for an interface should be whether or not it is a loopback
                interface.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;loopback-addressType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A loopback address that may not actually configured on the machine's loopback interface.
                Differs from inet-addressType in that the given value will be used even if no NIC can
                be found that has the IP address associated with it.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;value&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    An IP address in IPv6 or IPv4 dotted decimal notation.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;multicastType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that part of the selection criteria
                for an interface should be whether or not it supports
                multicast.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;point-to-pointType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that part of the selection criteria
                for an interface should be whether or not it is a point-to-point
                interface.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;interface-upType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that part of the selection criteria
                for an interface should be whether or not it is currently up.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;interface-virtualType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that part of the selection criteria
                for an interface should be whether or not it is a virtual
                interface.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;public-addressType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that part of the selection criteria
                for an interface should be whether or not it has a publicly
                routable address.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;site-local-addressType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that part of the selection criteria
                for an interface should be whether or not an address associated
                with it is site-local.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;link-local-addressType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that part of the selection criteria
                for an interface should be whether or not an address associated
                with it is link-local.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;any-ipv6-addressType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that sockets using this interface
                should be bound to the IPv6 wildcard address (::).
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;any-ipv4-addressType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that sockets using this interface
                should be bound to the IPv4 wildcard address (0.0.0.0).
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;any-addressType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                Empty element indicating that sockets using this interface
                should be bound to a wildcard address. The IPv6 wildcard
                address (::) will be used unless the java.net.preferIpV4Stack
                system property is set to true, in which case the IPv4
                wildcard address (0.0.0.0) will be used. If a socket is
                bound to an IPv6 anylocal address on a dual-stack machine,
                it can accept both IPv6 and IPv4 traffic; if it is bound to
                an IPv4 (IPv4-mapped) anylocal address, it can only accept
                IPv4 traffic.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;socketType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;Configuration information for a socket.&lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
        &lt;xs:attribute name=&quot;interface&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Name of the interface to which the socket should be bound, or, for multicast
                    sockets, the interface on which it should listen. This should
                    be one of the declared interfaces.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;port&quot; type=&quot;xs:unsignedShort&quot; use=&quot;optional&quot; default=&quot;0&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Number of the port to which the socket should be bound.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;fixed-port&quot; type=&quot;xs:boolean&quot; use=&quot;optional&quot; default=&quot;false&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Whether the port value should remain fixed even if numerically offsets
                    are applied to the other sockets in the socket group..
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;multicast-address&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Multicast address on which the socket should receive multicast
                    traffic. If unspecified, the socket will not be configured
                    to receive multicast.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;multicast-port&quot; type=&quot;xs:positiveInteger&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                    Port on which the socket should receive multicast
                    traffic. If unspecified, the socket will not be configured
                    to receive multicast.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;!-- Path configurations --&gt;
    &lt;xs:complexType name=&quot;named-pathsType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A list of named filesystem paths. The paths may or may
                not be fully specified (i.e. include the actual paths.)
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;path&quot; type=&quot;named-pathType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;named-pathType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A named filesystem path, but without a requirement to specify
                the actual path. If no actual path is specified, acts as a
                as a placeholder in the model (e.g. at the domain level)
                until a fully specified path definition is applied at a
                lower level (e.g. at the host level, where available addresses
                are known.)
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;pathType&quot;&gt;
                &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
                    &lt;xs:annotation&gt;
                        &lt;xs:documentation&gt;
                        The name of the path. Cannot be one of the standard fixed paths
                        provided by the system:

                        jboss.home.dir - the root directory of the JBoss AS distribution
                        user.home - user's home directory
                        user.dir - user's current working directory
                        java.home - java installation directory
                        jboss.server.base.dir - root directory for an individual server
                                                instance

                        Note that the system provides other standard paths that can be
                        overridden by declaring them in the configuration file. See
                        the 'relative-to' attribute documentation for a complete
                        list of standard paths.
                        &lt;/xs:documentation&gt;
                    &lt;/xs:annotation&gt;
                &lt;/xs:attribute&gt;
            &lt;/xs:extension&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;pathType&quot;&gt;
        &lt;xs:attribute name=&quot;path&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                The actual filesystem path. Treated as an absolute path, unless the
                'relative-to' attribute is specified, in which case the value
                is treated as relative to that path.

                If treated as an absolute path, the actual runtime pathname specified
                by the value of this attribute will be determined as follows:

                If this value is already absolute, then the value is directly
                used.  Otherwise the runtime pathname is resolved in a
                system-dependent way.  On UNIX systems, a relative pathname is
                made absolute by resolving it against the current user directory.
                On Microsoft Windows systems, a relative pathname is made absolute
                by resolving it against the current directory of the drive named by the
                pathname, if any; if not, it is resolved against the current user
                directory.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
            &lt;xs:simpleType&gt;
                &lt;xs:restriction base=&quot;xs:string&quot;&gt;
                    &lt;xs:minLength value=&quot;1&quot;&gt;&lt;/xs:minLength&gt;
                &lt;/xs:restriction&gt;
            &lt;/xs:simpleType&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;relative-to&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                The name of another previously named path, or of one of the
                standard paths provided by the system. If 'relative-to' is
                provided, the value of the 'path' attribute is treated as
                relative to the path specified by this attribute. The standard
                paths provided by the system include:

                jboss.home.dir - the root directory of the JBoss AS distribution
                user.home - user's home directory
                user.dir - user's current working directory
                java.home - java installation directory
                jboss.server.base.dir - root directory for an individual server
                                        instance
                jboss.server.config.dir - directory in which server configuration
                                          files are stored.
                jboss.server.data.dir - directory the server will use for persistent
                                        data file storage
                jboss.server.log.dir - directory the server will use for
                                       log file storage
                jboss.server.temp.dir - directory the server will use for
                                       temporary file storage
                jboss.domain.servers.dir - directory under which a host controller
                                           will create the working area for
                                           individual server instances
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;specified-pathsType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A list of named filesystem paths.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;path&quot; type=&quot;specified-pathType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;specified-pathType&quot;&gt;
        &lt;xs:annotation&gt;
            &lt;xs:documentation&gt;
                A named filesystem path.
            &lt;/xs:documentation&gt;
        &lt;/xs:annotation&gt;
        &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                The name of the path. Cannot be one of the standard fixed paths
                provided by the system:

                jboss.home.dir - the root directory of the JBoss AS distribution
                user.home - user's home directory
                user.dir - user's current working directory
                java.home - java installation directory
                jboss.server.base.dir - root directory for an individual server
                                        instance

                Note that the system provides other standard paths that can be
                overridden by declaring them in the configuration file. See
                the 'relative-to' attribute documentation for a complete
                list of standard paths.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;path&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                The actual filesystem path. Treated as an absolute path, unless the
                'relative-to' attribute is specified, in which case the value
                is treated as relative to that path.

                If treated as an absolute path, the actual runtime pathname specified
                by the value of this attribute will be determined as follows:

                If this value is already absolute, then the value is directly
                used.  Otherwise the runtime pathname is resolved in a
                system-dependent way.  On UNIX systems, a relative pathname is
                made absolute by resolving it against the current user directory.
                On Microsoft Windows systems, a relative pathname is made absolute
                by resolving it against the current directory of the drive named by the
                pathname, if any; if not, it is resolved against the current user
                directory.

                Note relative path declarations have to use '/' as file separator.
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
            &lt;xs:simpleType&gt;
                &lt;xs:restriction base=&quot;xs:string&quot;&gt;
                    &lt;xs:minLength value=&quot;1&quot;&gt;&lt;/xs:minLength&gt;
                &lt;/xs:restriction&gt;
            &lt;/xs:simpleType&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;relative-to&quot; type=&quot;xs:string&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;
                The name of another previously named path, or of one of the
                standard paths provided by the system. If 'relative-to' is
                provided, the value of the 'path' attribute is treated as
                relative to the path specified by this attribute. The standard
                paths provided by the system include:

                jboss.home.dir - the root directory of the JBoss AS distribution
                user.home - user's home directory
                user.dir - user's current working directory
                java.home - java installation directory
                jboss.server.base.dir - root directory for an individual server
                                        instance
                jboss.server.config.dir - directory in which server configuration
                                          files are stored.
                jboss.server.data.dir - directory the server will use for persistent
                                        data file storage
                jboss.server.log.dir - directory the server will use for
                                       log file storage
                jboss.server.temp.dir - directory the server will use for
                                       temporary file storage
                jboss.domain.servers.dir - directory under which a host controller
                                           will create the working area for
                                           individual server instances
                &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;!--  JVM configurations --&gt;
    &lt;xs:complexType name=&quot;jvmsType&quot;&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;jvm&quot; type=&quot;namedJvmType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;jvmType&quot;&gt;
        &lt;xs:all minOccurs=&quot;0&quot; maxOccurs=&quot;1&quot;&gt;
            &lt;xs:element name=&quot;heap&quot; type=&quot;heapType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;!-- XX:PermSize, XX:MaxPermSize --&gt;
            &lt;xs:element name=&quot;permgen&quot; type=&quot;bounded-memory-sizeType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;!-- Xss --&gt;
            &lt;xs:element name=&quot;stack&quot; type=&quot;memory-sizeType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;xs:element name=&quot;agent-lib&quot; type=&quot;jvm-agentLibType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;xs:element name=&quot;agent-path&quot; type=&quot;jvm-agentPathType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;xs:element name=&quot;java-agent&quot; type=&quot;jvm-javaagentType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;xs:element name=&quot;jvm-options&quot; type=&quot;jvm-optionsType&quot; minOccurs=&quot;0&quot;/&gt;
            &lt;xs:element name=&quot;environment-variables&quot; type=&quot;environmentVariablesType&quot; minOccurs=&quot;0&quot;/&gt;
        &lt;/xs:all&gt;
        &lt;xs:attribute name=&quot;java-home&quot; type=&quot;xs:string&quot;/&gt;
        &lt;xs:attribute name=&quot;type&quot; default=&quot;SUN&quot;&gt;
            &lt;xs:simpleType&gt;
                &lt;xs:restriction base=&quot;xs:token&quot;&gt;
                    &lt;xs:enumeration value=&quot;SUN&quot;&gt;
			            &lt;xs:annotation&gt;
			                &lt;xs:documentation&gt;Allows the full set of JVM options to be set via the jvm schema elements&lt;/xs:documentation&gt;
			            &lt;/xs:annotation&gt;
                    &lt;/xs:enumeration&gt;
                    &lt;xs:enumeration value=&quot;IBM&quot;&gt;
                        &lt;xs:annotation&gt;
                            &lt;xs:documentation&gt;Sets a subset of the JVM options via the jvm schema elements&lt;/xs:documentation&gt;
                        &lt;/xs:annotation&gt;
                    &lt;/xs:enumeration&gt;
                &lt;/xs:restriction&gt;
            &lt;/xs:simpleType&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;env-classpath-ignored&quot; default=&quot;true&quot; type=&quot;xs:boolean&quot;/&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;namedJvmType&quot;&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;jvmType&quot;&gt;
                &lt;xs:attribute name=&quot;name&quot; type=&quot;xs:string&quot;/&gt;
            &lt;/xs:extension&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;serverJvmType&quot;&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;namedJvmType&quot;&gt;
                &lt;xs:attribute name=&quot;debug-enabled&quot; type=&quot;xs:boolean&quot; default=&quot;false&quot;/&gt;
                &lt;xs:attribute name=&quot;debug-options&quot; type=&quot;xs:string&quot; /&gt;
            &lt;/xs:extension&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;heapType&quot;&gt;
        &lt;xs:attribute name=&quot;size&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;Initial JVM heap size&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
        &lt;xs:attribute name=&quot;max-size&quot; use=&quot;optional&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;Maximum JVM heap size&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;jvm-optionsType&quot;&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;option&quot; type=&quot;jvm-optionType&quot; minOccurs=&quot;0&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;jvm-optionType&quot;&gt;
        &lt;xs:attribute name=&quot;value&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;JVM option value&lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;jvm-agentLibType&quot;&gt;
        &lt;xs:attribute name=&quot;value&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;JVM agent lib value &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;jvm-agentPathType&quot;&gt;
        &lt;xs:attribute name=&quot;value&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;JVM agent path value &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;jvm-javaagentType&quot;&gt;
        &lt;xs:attribute name=&quot;value&quot; use=&quot;required&quot;&gt;
            &lt;xs:annotation&gt;
                &lt;xs:documentation&gt;JVM javaagent value &lt;/xs:documentation&gt;
            &lt;/xs:annotation&gt;
        &lt;/xs:attribute&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;bounded-memory-sizeType&quot;&gt;
        &lt;xs:attribute name=&quot;size&quot; type=&quot;xs:string&quot;/&gt;
        &lt;xs:attribute name=&quot;max-size&quot; type=&quot;xs:string&quot;/&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;memory-sizeType&quot;&gt;
        &lt;xs:attribute name=&quot;size&quot; type=&quot;xs:string&quot; use=&quot;required&quot;/&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;properties-with-boottime&quot;&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;property&quot; type=&quot;boottimePropertyType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;properties&quot;&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;property&quot; type=&quot;propertyType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;environmentVariablesType&quot;&gt;
        &lt;xs:sequence&gt;
            &lt;xs:element name=&quot;variable&quot; type=&quot;propertyType&quot; maxOccurs=&quot;unbounded&quot;/&gt;
        &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;propertyType&quot;&gt;
        &lt;xs:attribute name=&quot;name&quot; use=&quot;required&quot;/&gt;
        &lt;xs:attribute name=&quot;value&quot; use=&quot;optional&quot;/&gt;
    &lt;/xs:complexType&gt;

    &lt;xs:complexType name=&quot;boottimePropertyType&quot;&gt;
        &lt;xs:complexContent&gt;
            &lt;xs:extension base=&quot;propertyType&quot;&gt;
                &lt;xs:attribute name=&quot;boot-time&quot; type=&quot;xs:boolean&quot; default=&quot;true&quot;/&gt;
            &lt;/xs:extension&gt;
        &lt;/xs:complexContent&gt;
    &lt;/xs:complexType&gt;

&lt;/xs:schema&gt;
</pre></div></div>
                <div id='entity-decl-context-menu' class='context-menu-panel' style='visibility: hidden;'></div>
                <div id='entity-decl-context-menu-data' style='visibility: hidden;'></div>

                <div id="bug-popup-div" class="bug-popup" style="visibility: hidden;">
                    <span id="bug-message-span"></span>
                </div>

                
                
                <div id="ad-container">
                    <script>
                    function findPre(el) {
                        var children = el.childNodes;
                        for(var i = 0; i < children.length; ++i) {
                            var c = children[i];
                            if (c.tagName == "PRE") {
                                return c;
                            }
                        }
                        return null;
                    }

                    function getLines() {
                        if (document.getElementsByClassName) {
                        	return document.getElementsByClassName("line");
                        } else {
                            var lines = new Array();
                            divs = document.getElementsByTagName("div");
                            for(var i = 0; i < divs.length; ++i) {
                                if (divs[i].className == "line") {
                                    lines[lines.length] = divs[i];
                                }
                            }
                            return lines;
                        }
                    }

                    function findContigousAdSpace() {
                        var lineElems = getLines();
                        var regions = new Array();
                        var inRegion = false;
                        var lastLine = -1;
                        var currRegion = null;
                        for(var i = 0; i < lineElems.length; ++i) {
                            var d = lineElems[i];
                            var did = d.id;
                            if (!did || !did.substr(0, 5) == "line-") {
                                continue;
                            }
                            var line = parseInt(did.substr(5));
                            var pre = findPre(d);
                            if (lastLine + 1 == line) {
                                if (pre) {
                                    currRegion.xEnd = currRegion.xEnd < pre.offsetWidth ? pre.offsetWidth : currRegion.xEnd;
                                    currRegion.yEnd = getPageOffsetBottom(pre) - getPageOffsetTop(document.getElementById('source-view'));
                                }
                            } else {
                                if (currRegion) {
                                    regions[regions.length] = currRegion;
                                }
                                if (pre) {
                                    currRegion = { };
                                    currRegion.xEnd = pre.offsetWidth;
                                    currRegion.yBegin = getPageOffsetTop(pre) - getPageOffsetTop(document.getElementById('source-view'));
                                }
                            }
                            lastLine = line;
                        }
                        if (currRegion) {
                            regions[regions.length] = currRegion;
                        }
                        return regions;
                    }

                    function show160x600Ad(divWidth, region) {
                        var j = region.yBegin + 20;
                        if (j + 600 < region.yEnd) {
                            if (region.xEnd > divWidth - 200) {
                                return false;
                            }
                            document.write('<div style="position: absolute; right: 0px; top: ' + j + 'px; z-index: 2; width: 185px; height: 610px"><div style="position: relative;">'
                                    + get160x600Ad()
                                    + '</div></div>');
                            region.yBegin = j + 600;
                            return true;
                        }
                        return false;
                    }
                    
                    function show120x240Ad(divWidth, region) {
                        var j = region.yBegin + 20;
                        if (j + 240 < region.yEnd) {
                            if (region.xEnd > divWidth - 200) {
                                return false;
                            }
                            document.write('<div style="position: absolute; right: 0px; top: ' + j + 'px; z-index: 2; width: 145px; height: 250px"><div style="position: relative;">'
                                    + get120x240Ad()
                                    + '</div></div>');
                            region.yBegin = j + 240;
                            return true;
                        }
                        return false;
                    }

                    function show160x90LinkUnitAd(divWidth, region) {
                        var j = region.yBegin + 20;
                        if (j + 90 < region.yEnd) {
                            if (region.xEnd > divWidth - 200) {
                                return false;
                            }
                            document.write('<div style="position: absolute; right: 0px; top: ' + j + 'px; z-index: 2; width: 185px; height: 100px"><div style="position: relative;">'
                                    + get160x90LinkUnitAd()
                                    + '</div></div>');
                            region.yBegin = j + 90;
                            return true;
                        }
                        return false;
                    }

                    function showAds() {
                        var units = [[ show160x600Ad, show120x240Ad ], [ show160x90LinkUnitAd ]]
                        var regions = findContigousAdSpace();
                        var num = 0;
                        var divWidth = getPageOffsetRight(document.getElementById('source-view')) - getPageOffsetLeft(document.getElementById('source-view'));
                        for(var unit = 0; unit < units.length; ++unit) {
                            var ads = units[unit];
                            var num = 0;
                            var maxNAds = 3;
                            for(var a = 0; a < ads.length; ++a) {
                                if (num >= maxNAds) {
                                    break;
                                }
                                for(var i = 0; i < regions.length; ++i) {
                                    if (num >= maxNAds) {
                                        break;
                                    }
                                    while(true) {
                                        if (num >= maxNAds) {
                                            break;
                                        }
                                        if (!ads[a](divWidth, regions[i])) {
                                            break;
                                        }
                                        ++num;
                                    }
                                }
                            }
                        }
                    }
                    if (!isBrowserMSIE()) {
                        showAds();
                    }
                    </script>
                </div>
                
            </div>
        </div>
    </div>
    <div style="display: none;" id="outline-view-div">
        <div class="outline-header">
            <form name="profileform">
            <label for="profile">Profile: </label>
            <select name="profile" onchange="setProfile(this.value);" id="profilechanger">
                <option value="jre">Standard JRE</option>
                <option value="gae">Google AppEngine</option>
            </select>
            </form>
        </div>
        
    </div>
    <div style="display: none;" id="th-view-div">
        
    </div>
    <script type="text/javascript">pageTracker._setCustomVar(1, 'p-uri', 'http://www.jboss.org', 3);</script>
    <script>
    function render(msgPre, evidenceId, currentId) {
        var currentParts = currentId.split("@");
        if (evidenceId == "") {
            return currentParts.length == 5 ? (msgPre + " as indicated by Google AppEngine Whitelist") : "";
        }
        var parts = evidenceId.split("@");
        if (parts.length == 5) {
            var prefix = "Uses";
            if (currentParts[3] == parts[3] && (currentParts[4] + ".").substring(0, parts[4].length + 1) == (parts[4] + ".")) {
                prefix = "Contained in";
            }
            return prefix + " type " + (parts[3] + "." + parts[4]).replace(/\$/g, ".");
        } else if (parts.length == 6) {
            return "Uses method " + parts[5] + " in type " + (parts[3] + "." + parts[4]).replace("$", ".");            
        }
        return "";
    }
    
    function doProfileRegistration(event, dummy, data) {
        var gaepc = data[0];

        for(i = 0; i < gaepc[2].length; ++i) {
            var m = gaepc[2][i];
            if (m.length >= 3) {
                var div = document.getElementById("gae-status-" + m[0]);
                if (div) {
                    if ("NONE" == m[1]) {
                        div.innerHTML = "<img class='img_base img_jdt_obj16_never_translate' src='/static/app/images/1x1.gif' border='0' title='"+ render("No support", m[2], m[0]) + "' width='16' height='16'></img>";
                    } else if ("PARTIAL" == m[1]) {
                        div.innerHTML = "<img class='img_base img_jdt_obj16_warning_obj' src='/static/app/images/1x1.gif' border='0' title='"+ render("Partial support", m[2], m[0]) + "' width='16' height='16'></img>";
                    }
                }
            }
        }
    }

    function registerProfileCompatibility(data) {
        YAHOO.util.Event.onDOMReady(doProfileRegistration, data);
    }

    function setInitialProfile() {
        var profileId = getRequestParameter('pr');
        var profileChooser = document.getElementById("profilechanger");

        if (profileChooser != null) {
            var options = profileChooser.options;
            for (var i=0; i<options.length; i=i+1) {
                if (options[i].value == profileId) {
                    options[i].selected = true;
                    setProfile(profileId);
                    return;
                }
            }
        }
    }

    function setProfile(value) {
        if ("gae" == value) {
            var el = YAHOO.util.Dom.getElementsByClassName("gae-status");            
            YAHOO.util.Dom.replaceClass(el, "gae-status", "gae-status-enabled");            
        } else {
            el = YAHOO.util.Dom.getElementsByClassName("gae-status-enabled");
            YAHOO.util.Dom.replaceClass(el, "gae-status-enabled", "gae-status");            
        }
    }

    var markElement = null;
    var scheduledMarkId = null;

    function scheduleMark(el) {
        if (scheduledMarkId != null) {
            unscheduleMark(null)
        }
        markElement = el;
        scheduledMarkId = setInterval("mark(markElement);", 500);
    }

    function unscheduleMark(el) {
        if (scheduledMarkId != null) {
            clearInterval(scheduledMarkId);
            scheduledMarkId = null;
        }
    }

    function mark(el) {
        var classAttribute = getClassAttribute(el);
        var weight = getWeight(classAttribute);
        if (weight == "0") {
            el.style.background = "#fb8";
        }
        else {
            el.style.background = "#ddd";
        }
    
        var markWithoutWeight = removeWeight(classAttribute);
    
        var spanElems = document.getElementsByTagName("span");
        for (i = 0; i < spanElems.length; i++) {        
            var spanClassAttribute = getClassAttribute(spanElems[i]);
            if (spanClassAttribute && isMark(spanClassAttribute)) {
                if (markWithoutWeight == removeWeight(spanClassAttribute)) {            
                    var spanWeight = getWeight(spanClassAttribute);
                    if (spanWeight == "0") {
                        spanElems[i].style.background = "#fb8";
                    }
                    else {
                        spanElems[i].style.background = "#ddd";
                    }
                }
                else {
                    spanElems[i].style.background = "";
                }       
            }   
        }    
    }

    function demark(el) {
        el.style.background = "white";
        var spanElems = document.getElementsByTagName("span");
        for (i = 0; i < spanElems.length; i++) {
            if (getClassAttribute(el) == getClassAttribute(spanElems[i])) {
                spanElems[i].style.background = ""; 
            }
        }
    }

    function removeWeight(s) {
        return s.substring(0, s.indexOf('#'));
    }

    function getWeight(s) {
        return s.substring(s.indexOf('#')+1);
    }

    function isMark(s) {
        return (s.length > 5) && (s.substring(0, 5) == "mark-");
    }
    </script>
    <div style="display: none;" id="pc-div">
        
    </div>

    <script>
    var bugPopUpOn = -1;
    var bugs = [];

    function showbug(marker, index) {
        var bugPopupDiv = document.getElementById('bug-popup-div');
        var bugMsgSpan = document.getElementById('bug-message-span');
        var startIndex = index - 1;
        while(startIndex >= 0 && bugs[startIndex].sl == bugs[index].sl) {
            --startIndex;
        }
        ++startIndex;
        var str = '';
        for(var i = startIndex; i <= index; ++i) {
            var bug = bugs[i];
            if (bug.el > 0 && bug.el != bug.sl) {
                str += 'Lines ' + bug.sl + '-' + bug.el;
            } else {
                str += 'Line ' + bug.sl;
            }
            str += ': ' + bug.m + '<br/>';
        }
        bugMsgSpan.innerHTML = str;
        bugPopupDiv.style.left = (marker.offsetLeft + 20) + 'px';
        bugPopupDiv.style.top = (marker.offsetTop + 20) + 'px';
        bugPopupDiv.style.visibility = 'visible';        
    }

    function hidebug() {
        var bugPopupDiv = document.getElementById('bug-popup-div');
        bugPopupDiv.style.visibility = 'hidden';
    }

    function cmpBugs(b1, b2) {
        return b1.sl - b2.sl;
    }

    function showBugs() {
        bugs = eval(document.getElementById('bugs').innerHTML).sort(cmpBugs);
        for (var i=0, ln=bugs.length; i<ln; ++i) {
            var lnm = findBugLnm(i);
            if (lnm) {
                var nextBug = findNextBugWithLnm(i);
                var nextBugHref = nextBug ? "#" + nextBug.sl : "#";
                lnm.innerHTML = 
                    "<a href=\""+nextBugHref+"\" onmouseover=\"showbug(this,"+i+");\" onmouseout=\"hidebug();\">"+
                    "<img width=\"16\" height=\"16\" src=\"/static/app/images/debug_persp.gif\" style=\"border-style: none;\"></img>"+
                    "</a>";
            }
        }
    }
    YAHOO.util.Event.onDOMReady(showBugs, null, true);

    function findBugLnm(bugIdx) {
        var bug = bugs[bugIdx];
        if (bug.sl > 0) {
            var lnm = document.getElementById('lnml-' + bug.sl);
            if (lnm) {
                return lnm;
            }
        }
        return null;
    }

    function findNextBugWithLnm(bugIdx) {
        var sl = bugs[bugIdx].sl;
        for (var i = bugIdx+1, ln=bugs.length; i<ln; i++) {
            if (bugs[i].sl > sl) {
                var lnm = findBugLnm(i);
                if (lnm) {
                    return bugs[i];
                }
            }
        }
        return null;
    }
    
    function triggerLineHotspot(line) {
        var imgTag = document.getElementById('lnhs-' + line);
        if (imgTag) {
            imgTag.src = '/static/app/images/html_tag_obj.gif';
        }
    }

    function untriggerLineHotspot(line) {
        var imgTag = document.getElementById('lnhs-' + line);
        if (imgTag) {
            imgTag.src = '/static/app/images/1x1.gif';
        }
    }
    
    function showStackOverflowQuestions() {
        document.getElementById('page-mask').style.visibility = 'visible';
        var dropdown = document.getElementById('so-question-panel');
        if (dropdown) {
            dropdown.style.display = 'block';
            var x = (getWindowWidth() - dropdown.offsetWidth) / 2;
            var y = (getWindowHeight() - dropdown.offsetHeight) / 2;
            dropdown.style.left = x + 'px';
            dropdown.style.top = y + 'px';
            dropdown.style.visibility = 'visible';
        }
    }

    function hideStackOverflowQuestions() {
        var dropdown = document.getElementById('so-question-panel');
        if (dropdown) {
            dropdown.style.visibility = 'hidden';
            dropdown.style.display = 'none';
        }
        document.getElementById('page-mask').style.visibility = 'hidden';
    }

    function showSnippetDialog(line) {
        showSnippetDialogFromTo(line, line);
    }

    function showSnippetDialogFromTo(from, to) {
        document.getElementById('page-mask').style.visibility = 'visible';
        var dropdown = document.getElementById('snippet-dropdown');
        dropdown.style.display = 'block';
        var x = (getWindowWidth() - dropdown.offsetWidth) / 2;
        var y = (getWindowHeight() - dropdown.offsetHeight) / 2;
        dropdown.style.left = x + 'px';
        dropdown.style.top = y + 'px';
        dropdown.style.visibility = 'visible';
        var form = document.getElementById('snippet-form');
        form.snippet_start.value = from;
        form.snippet_end.value = to;
        fetchSnippet();
    }

    function hideSnippetDialog() {
        var dropdown = document.getElementById('snippet-dropdown');
        dropdown.style.visibility = 'hidden';
        dropdown.style.display = 'none';
        document.getElementById('page-mask').style.visibility = 'hidden';
    }
    
    function escKeyListener() {
        hideSnippetDialog();
        hideStackOverflowQuestions();
    }

    keyListener = new YAHOO.util.KeyListener(document, {keys:[27]}, escKeyListener);
    YAHOO.util.Event.onDOMReady(keyListener.enable, keyListener, true);
        
    
    function incFromLine() {
        var form = document.getElementById('snippet-form');
        var start = form.snippet_start.value;
        var startNum = parseInt(start);
        form.snippet_start.value = startNum + 1
        var end = form.snippet_end.value;
        var endNum = parseInt(end);
        if (endNum < startNum + 1) {
            form.snippet_end.value = form.snippet_start.value;
        }
        fetchSnippet();
    }

    function decFromLine() {
        var form = document.getElementById('snippet-form');
        var start = form.snippet_start.value;
        var startNum = parseInt(start);
        form.snippet_start.value = startNum <= 1 ? 1 : (startNum - 1);
        fetchSnippet();
    }

    function incToLine() {
        var form = document.getElementById('snippet-form');
        var end = form.snippet_end.value;
        var endNum = parseInt(end);
        form.snippet_end.value = endNum + 1;
        fetchSnippet();
    }

    function decToLine() {
        var form = document.getElementById('snippet-form');
        var end = form.snippet_end.value;
        var endNum = parseInt(end);
        form.snippet_end.value = endNum <= 1 ? 1 : (endNum - 1);
        var start = form.snippet_start.value;
        var startNum = parseInt(start);
        if (endNum - 1 < startNum) {
            form.snippet_start.value = form.snippet_end.value;
        }
        fetchSnippet();
    }

    function fetchSnippet() {
        var preview = document.getElementById('snippet-preview');
        var form = document.getElementById('snippet-form');
        var start = form.snippet_start.value;
        var end = form.snippet_end.value;
        var startNum = parseInt(start);
        var endNum = parseInt(end);
        var length = endNum - startNum + 1;

        var sUrl = location.protocol+"//"+location.host+location.pathname+
                   "?fragment=line&start="+start+"&length="+length;

        var callback = {
            success: function(oResponse) {
                var snippet = oResponse.responseText;
                preview.innerHTML = snippet;
                form.snippet_html.value = snippet;
                form.snippet_html.select();
                form.snippet_html.focus();
            },

            failure: function(oResponse) {
                preview.innerHTML = "";
                form.snippet_html.value = "";
            },

            timeout: 7000
        };

        YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
    }

    fileSource = function() {
    	var leftTabView;

    	function getOutlineHTML() {
        	var outlineDiv = document.getElementById("outline-view-div");
        	var html = outlineDiv.innerHTML;
        	outlineDiv.innerHTML = "";
        	return html;
    	}

        function addTabs() {
            var allviews = document.getElementById('allviews_hidden').innerHTML;
            var activeview = document.getElementById('activeview_hidden').innerHTML;

            leftTabView = new YAHOO.widget.TabView();

            if (allviews.indexOf('o') >= 0) {
                leftTabView.addTab( new YAHOO.widget.Tab({
                    label: 'Outline',
                    content: getOutlineHTML(),
                    cacheData: true,
                    active: activeview == 'o'
                }));
            }

            leftTabView.addTab( new YAHOO.widget.Tab({
                label: 'Files',
                content: '<div class="file-nav-tree-container"><div id="treeDiv"></div></div>',
                cacheData: true,
                active: activeview == 'f'
            }));

            if (allviews.indexOf('h') >=0 ) {
                leftTabView.addTab( new YAHOO.widget.Tab({
                    label: 'Hierarchy',
                    content: document.getElementById("th-view-div").innerHTML,
                    cacheData: true,
                    active: activeview == 'h'
                }));
            }
         
            if (!isGCEnterpriseEdition() && !isBrowserMSIE7() && !isBrowserMSIE6()) {   
                var commentURL = window.location.protocol + "//grepcode.com" + window.location.pathname;
            
                leftTabView.addTab(new YAHOO.widget.Tab({
                    label: 'Comments',
                    content: '<div class="fb-comments" data-href=' + commentURL + ' data-num-posts="20" data-width="380"></div>',
                    cacheData: false,
                    active: false
                }));
            }

            if (bugs.length > 0) {
                var links = "<ul class='bug-list'>";
                for(var i = 0; i < bugs.length; ++i) {
                    var bug = bugs[i];
                    var str = bug.m;
                    if (bug.sl > 0) {
                        var lnm = document.getElementById('lnml-' + bug.sl);
                        if (lnm) {
                            str = '<div class="bug-message">'+
                                    '<div class="ln"><a href="#' + bug.sl + '">' + bug.sl + '</a></div>'+': '+str+
                                  '</div>';
                        }
                    }
                    links += "<li class='bug-item'><span>" + str + "</span></li>";
                }
                links += "</ul>";
                var bugsTab = new YAHOO.widget.Tab({
                    label: 'Bugs (' + bugs.length + ')',
                    content: links,
                    active: activeview == 'b'
                });

                bugsTab.addListener('click', function(e) {
                    for (var i=0, ln=bugs.length; i<ln; ++i) {
                        var lnm = findBugLnm(i);
                        if (lnm) {
                            var ch = lnm.childNodes[0];
                            ch.focus();
                            break;
                        }
                    }
                });

                leftTabView.addTab(bugsTab);
            }

            leftTabView.appendTo('file-nav-tabs');
        }
    
        return {
            init: function() {
                addTabs();
                setInitialProfile();
            }
        };
    }();

    YAHOO.util.Event.onDOMReady(fileSource.init, fileSource, true);
    
    YAHOO.util.Event.onDOMReady(projectTree.init, projectTree, true);
    
    function setDimensions() {
        var fNavDiv = document.getElementById('file-nav-panel');
        var fSrcDiv = document.getElementById('source-view');

        fNavDiv.style.height = (getWindowHeight() - getPageOffsetTop(fNavDiv) - 1) + 'px';

        fSrcDiv.style.left = getPageOffsetRight(fNavDiv) + 'px';
        fSrcDiv.style.bottom = '0px';
        fSrcDiv.style.right = '0px';
        fSrcDiv.style.width = (getWindowWidth() - getPageOffsetRight(fNavDiv) - 1) + 'px';
        fSrcDiv.style.height = (getWindowHeight() - getPageOffsetTop(fNavDiv) - 1) + 'px';
    }

    YAHOO.util.Event.onDOMReady(setDimensions, null, true);
    YAHOO.util.Event.on(window, 'resize', setDimensions);

    function highlightLine(line) {
        var lDiv = document.getElementById('line-' + line);
        if (lDiv) {
            lDiv.style.background = '#e0e0ff';
        }
    }

    function highlightCurrentLine() {
        var anchor = window.location.hash;
        if (anchor) {
            anchor = anchor.substring(1);
            var line = parseInt(anchor);
            if (!isNaN(line)) {
                highlightLine(line);
            }
        }
    }
    </script>
</div>



    
        <div id="fb-root"></div>
        <img id="comment-ping-back" src="/static/app/images/1x1.gif"/>
        <script>
            window.fbAsyncInit = function() {
                FB.init({
                    appId:  '143989634057',
                    status: true,
                    cookie: true,
                    xfbml:  true
                });

                FB.Event.subscribe('comment.create', function(response) {
                    document.getElementById('comment-ping-back').src = "/event?type=comment.create&url=" + window.location + "&href=" + response.href + "&commentID=" + response.commentID;
                });
            };

            (function(d, s, id) {
                var js, fjs = d.getElementsByTagName(s)[0];
                if (d.getElementById(id)) {return;}
                js = d.createElement(s); js.id = id;
                js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
                fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));
        </script>
    
    
</div>


    </div>
    <script>
        YAHOO.util.Event.onDOMReady(function() {
            var html = document.getElementById('html');
            html.style.overflow = "hidden";
        }, null, true);
    </script>


        
        
            <div id="notification-bar">
                <table width="100%" border="0">
                    <tr valign="middle">
                        <td valign="middle"><span class="message">New to GrepCode? Check out our <a href="/faq" onclick="disableNotification(); return true;">FAQ</a></span></td>
                        <td valign="middle"><span class="cancel"><a href="#" onclick="disableNotification(); return false;">X</a></span></td>
                    </tr>
                </table>
            </div>
            <script type="text/javascript">
                YAHOO.util.Event.onDOMReady(doNotification);
            </script>
        
        
        

        

        

        
        
            <script type="text/javascript">
            try {
                pageTracker._trackPageview();
            } catch(err) {
            }
            </script>
        

        
        
            <!-- Google +1 -->
            <script type="text/javascript">
              (function() {
                var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                po.src = 'https://apis.google.com/js/plusone.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
              })();
            </script>
        

        
    </body>
</html>
